﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;


namespace ExpenseSystem.Model
{
    [TableName("SAM_SERVICEORDER")]
    public class ServiceOrderModel:NormalModel
    {
        private string _code;
        private long _orderid;
        private string _servicedate;
        private long _customserviceid; //这个是客服id
        private string _tel;
        private string _address;

        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual string ServiceDate
        {
            get { return _servicedate; }
            set
            {
                if (_servicedate == value)
                    return;
                _servicedate = value;
                if (!PropertyUpdated.Contains("ServiceDate"))
                    PropertyUpdated.Add("ServiceDate");
            }
        }

        public virtual string Tel
        {
            get { return _tel; }
            set
            {
                if (_tel == value)
                    return;
                _tel = value;
                if (!PropertyUpdated.Contains("Tel"))
                    PropertyUpdated.Add("Tel");
            }
        }


        public virtual string Address
        {
            get { return _address; }
            set
            {
                if (_address == value)
                    return;
                _address = value;
                if (!PropertyUpdated.Contains("Address"))
                    PropertyUpdated.Add("Address");
            }
        }

        public virtual long OrderId
        {
            get { return _orderid; }
            set
            {
                if (_orderid == value)
                    return;
                _orderid = value;
                if (!PropertyUpdated.Contains("OrderId"))
                    PropertyUpdated.Add("OrderId");
            }
        }
        public virtual long CustomServiceId
        {
            get { return _customserviceid; }
            set
            {
                if (_customserviceid == value)
                    return;
                _customserviceid = value;
                if (!PropertyUpdated.Contains("CustomServiceId"))
                    PropertyUpdated.Add("CustomServiceId");
            }
        }
    }
}
